/*
 * Copyright (c) 2014 Strong Group - 版权所有
 * 
 * This software is the confidential and proprietary information of
 * Strong Group. You shall not disclose such confidential information 
 * and shall use it only in accordance with the terms of the license 
 * agreement you entered into with www.cnstrong.cn.
 */
package com.zuorenke.serialize;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;


/**
 *
 * 描述:序列化通用接口
 *
 * @author  WQB
 * @created 2014-4-7 上午10:01:03
 * @since   v1.0.0
 */
public interface Serialization {

    byte getContentTypeId();

    String getContentType();

    ObjectOutput serialize(OutputStream output) throws IOException;

    ObjectInput deserialize(InputStream input) throws IOException;

}